###Makefile for network objece(s) module

#netobj core
obj-$(CONFIG_NETOBJ_CORE) := class_core.o

#addrobj-objs := addrobj_std.o addrobj_api.o
addrrlp-objs := addrgrp_rlp_std.o addrgrp_rlp_api.o rlp.o
servobj-objs := servobj_std.o servobj_api.o
servgrp-objs := servgrp_std.o servgrp_api.o

#obj-$(CONFIG_NETOBJ_ADDRES_TYPE) += addrobj.o
obj-$(CONFIG_NETOBJ_ADDRES_TYPE) += addrrlp.o
obj-$(CONFIG_NETOBJ_SERVICE_TYPE) += servobj.o
obj-$(CONFIG_NETOBJ_SERVGRP_TYPE) += servgrp.o

KDIR := /home/yanwh/leadsec/Branch_hangtian5yuan_20131106/themis.kernel
PWD := $(shell pwd)

default:
	@echo "Qiu tongguo!!"
	$(MAKE) -C $(KDIR) M=$(PWD) modules

clean:
	find ./ -name '*.o' -o -name '*.ko' -o -name '*.mod.c' -o -name '*.order' -o -name '*symvers' -o -name '.*mod*' -o -name '.*o*' -o -name '.*ko*' | xargs rm -rf  
